import csv
from matplotlib import markers
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

pr = pd.read_csv("output.csv")
plt.plot(pr['timestamp'],pr['estimate'],label = 'estimate',marker = '*')
plt.plot(pr['timestamp'],pr['truth'],label = 'truth',marker = '.')
plt.ticklabel_format(axis="y", style="sci", scilimits=(0,0))
plt.grid(True)
plt.axis('tight')
plt.xlabel("timestamp")
plt.ylabel("period_sum")
plt.legend()
plt.savefig('./output.png')
plt.show()
